package com.joint.cloud.common.constants;

import java.io.Serializable;

public class ResponseResult<T> implements Serializable {

    /**
     * 返回状态码
     */
    private Integer code;

    /**
     * 返回信息
     */
    private String msg;

    /**
     * 数据
     */
    private T data;

    /**
     * 发生异常时回显
     */
    private String stack;

    public ResponseResult(Integer code, String msg, T data, String stack) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.stack = stack;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getStack() {
        return stack;
    }

    public void setStack(String stack) {
        this.stack = stack;
    }
}
